package com.ruoyi.workorder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.workorder.mapper.WorkordersContactImageMapper;
import com.ruoyi.workorder.domain.WorkordersContactImage;
import com.ruoyi.workorder.service.IWorkordersContactImageService;

/**
 * 工作联系单-图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-26
 */
@Service
public class WorkordersContactImageServiceImpl implements IWorkordersContactImageService 
{
    @Autowired
    private WorkordersContactImageMapper workordersContactImageMapper;

    /**
     * 查询工作联系单-图片
     * 
     * @param woImageId 工作联系单-图片主键
     * @return 工作联系单-图片
     */
    @Override
    public WorkordersContactImage selectWorkordersContactImageByWoImageId(Long woImageId)
    {
        return workordersContactImageMapper.selectWorkordersContactImageByWoImageId(woImageId);
    }

    /**
     * 查询工作联系单-图片列表
     * 
     * @param workordersContactImage 工作联系单-图片
     * @return 工作联系单-图片
     */
    @Override
    public List<WorkordersContactImage> selectWorkordersContactImageList(WorkordersContactImage workordersContactImage)
    {
        return workordersContactImageMapper.selectWorkordersContactImageList(workordersContactImage);
    }

    /**
     * 新增工作联系单-图片
     * 
     * @param workordersContactImage 工作联系单-图片
     * @return 结果
     */
    @Override
    public int insertWorkordersContactImage(WorkordersContactImage workordersContactImage)
    {
        return workordersContactImageMapper.insertWorkordersContactImage(workordersContactImage);
    }

    /**
     * 修改工作联系单-图片
     * 
     * @param workordersContactImage 工作联系单-图片
     * @return 结果
     */
    @Override
    public int updateWorkordersContactImage(WorkordersContactImage workordersContactImage)
    {
        return workordersContactImageMapper.updateWorkordersContactImage(workordersContactImage);
    }

    /**
     * 批量删除工作联系单-图片
     * 
     * @param woImageIds 需要删除的工作联系单-图片主键
     * @return 结果
     */
    @Override
    public int deleteWorkordersContactImageByWoImageIds(Long[] woImageIds)
    {
        return workordersContactImageMapper.deleteWorkordersContactImageByWoImageIds(woImageIds);
    }

    /**
     * 删除工作联系单-图片信息
     * 
     * @param woImageId 工作联系单-图片主键
     * @return 结果
     */
    @Override
    public int deleteWorkordersContactImageByWoImageId(Long woImageId)
    {
        return workordersContactImageMapper.deleteWorkordersContactImageByWoImageId(woImageId);
    }
}
